package testpackage;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import aoppackage.Performance;
import mediasystem.cdplayer;
import normalpackage.Outer;


@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes=outerconfig.class)
public class test1 {

	@Autowired
	cdplayer player1;
	
	@Autowired
	Outer outer1;
	
	@Autowired
	Outer outer2;
	
	@Autowired
	Performance performance;

	@Test
	public void test_1(){
		player1.play();
		
		outer1.info();
		outer2.info();
		
		System.out.println("--------");
		System.out.println(outer1 == outer2);
	}
	
	@Test
	public void test_2(){
		System.out.println("--------");
		performance.perform();
		System.out.println("--------");
		try {
			performance.perform2();
		} catch (Exception e) {
		//	e.printStackTrace();
		}

	}
}
